import Moveable from "./moveable.js";
import Direction from "./direction.js";
import config from "./gameconfig.js";
class Bullet extends Moveable {
    constructor(x, y, imgSrc, width, height, speed = 300, dir = Direction.TOP) {
        super(x, y, imgSrc, width, height, speed, dir);
        this.owner = null;
        this.attack = 0;
        this.img.src = config.BulletSprite;
    }
    setOwner(tank) {
        this.owner = tank;
        this.attack = tank.attack;
        this.direction = tank.direction;
    }
}
export default Bullet;
